package com.wanxi.single;

import java.util.Scanner;

public class MySwitch {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入密码");
        String pass = scanner.next();
        switch (pass) {
            case "111111":
                System.out.println("请进入第一个房间");
                break;
            case "222222":
                System.out.println("请进入第2个房间");
                break;
            case "333333":
                System.out.println("请进入第3个房间");
                break;
            default:
                System.out.println("请进入第4个房间");
                break;

        }
    }

}
